home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Dev Tools / PMSAMDevGadgets.Source / SwapPMSAM / SwapPMSAM.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  984 b   |  65 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Application.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Tim Harnett
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.                  9/29/94    TMH        xxx put comment here xxx
  13.  
  14.     To Do:
  15. */
  16.  
  17.  
  18.  
  19. #ifndef __SwapPMSAM__
  20. #define __SwapPMSAM__
  21.  
  22. #ifndef __OCE__
  23. #include "OCE.h"
  24. #endif
  25.  
  26. #ifndef __OCEMAIL__
  27. #include "OCEMail.h"
  28. #endif
  29.  
  30. class CRecordID;
  31.  
  32. //---------------------------
  33. //    M i s c e l l a n y
  34. //----------------------------
  35.     
  36. #define         kSleepTime        60*60
  37. #define        kQuitFileGateResult        -2
  38.  
  39.  
  40. //--------------------------------------
  41. //        T A p p l i c a t i o n
  42. //--------------------------------------
  43.  
  44.  
  45. class TApplication {
  46. public:
  47.             TApplication();
  48.  
  49.     void    IApplication();
  50.     OSErr    InitAuth();
  51.     
  52.     void    Run();
  53.     OSErr    HandleEvent(EventRecord *ev);
  54.     OSErr     HandleCoreEvents(long messageID,Ptr buff,unsigned long msgLen);
  55.     OSErr    DoHighLevelEvent(EventRecord *ev);
  56.  
  57. private:
  58.  
  59.     long                fWNESleepTime;
  60.  
  61. };
  62.  
  63. #endif __SwapPMSAM__
  64.  
  65.